Technical Q&As
QD3D 33 - Determining 3DMF Endian-ness (8-Apr-96)
Q How does QuickDraw 3D determine if a 3DMF file was stored in little endian or big endian format?
A If the 3DMF text format file is read, the "endian-ness" doesn't matter,
because numbers are stored as ASCII strings which will be translated correctly
for the host system. When QuickDraw 3D reads a 3DMF file that was stored in
binary format, it looks at the first four bytes. If they are in the order "3"
"D" "M" "F", the file was stored with big endian values. If the first four
bytes are "F" "M" "D" "3", the numeric values in the file are interpreted as
stored in little endian format.
Technical Q&As
Previous Question | Contents | Next Question